<template>
  <div>
    <p>请选择你喜欢的专栏</p>
    <div v-for="(item, index) in arr" style="display: inline-block">
      <input type="checkbox" v-model="list" :value="item" />
      <span>{{ item }}</span>
    </div>

    <ul>
      <li v-for="(val, index) in list">
        {{ val }}
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  data() {
    return {
      arr: ["科幻", "喜剧", "动漫", "冒险", "科技", "军事", "娱乐", "奇闻"],
      list: [],
    };
  },
};
</script>

<style>
</style>